import request from '@/utils/request'

// 添加检查点
export const addCheckPoint = (data) => {
  return request({
    method: 'post',
    url: '/inspection/point/add',
    data,
  })
}

// 查询检查点列点
export const getCheckPointList = (params) => {
  return request({
    method: 'get',
    url: '/inspection/point/query',
    params,
  })
}

// 获取检查点详情
export const getCheckPointDetail = (params) => {
  return request({
    method: 'get',
    url: '/inspection/point/get',
    params,
  })
}

// 修改检查点
export const updateCheckPoint = (data) => {
  return request({
    method: 'put',
    url: `/inspection/point/update/${data.pkid}`,
    data,
  })
}

// 删除检查点
export const deleteCheckPoint = (params) => {
  return request({
    method: 'delete',
    url: `/inspection/point/delete`,
    params,
  })
}
